package com.hdoit.ares.logical.insu.dao.impl;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.insu.dao.IZhonganAccidentDao;
import com.hdoit.ares.logical.insu.model.ZhonganAccident;
import com.tennetcn.common.dao.base.IFinderExpression;
import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.utils.FinderExpressionFactory;
/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年01月16日 09:00:25
 * @comment
 */
@Component
public class ZhonganAccidentDaoImpl extends SuperDao<ZhonganAccident> implements IZhonganAccidentDao{

	@Override
	public ZhonganAccident queryModelByPolicyNo(String policyNo) {
		IFinderExpression finderExpression=FinderExpressionFactory.createExpression();
		finderExpression.select("*")
						.from(ZhonganAccident.class)
						.andEq("policyNo",policyNo);
	    return queryModel(finderExpression);
	}

}